package com.hyt.it.ogt.pj.data.model.entity.kw;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hyt.core.base.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 试卷表
 * </p>
 *
 * @author huangyh
 * @since 2020-05-27
 */
@Data
@Accessors(chain = true)
@TableName("sj_paper")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "试卷表实体类", description = "试卷表实体类")
public class SjPaper extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "所属机构的id")
    private String officeId;

    @ApiModelProperty(value = "试卷标识号，每张试卷唯一，修改试卷不会改变试卷标识号")
    private String paperId;

    @ApiModelProperty(value = "试卷名称")
    private String paperName;

    @ApiModelProperty(value = "最大作答时长")
    private String answerTime;

    @ApiModelProperty(value = "允许提前交卷时间")
    private String handInTime;

    @ApiModelProperty(value = "主观题总分")
    private BigDecimal subjectiveItemScore;

    @ApiModelProperty(value = "客观题总分")
    private BigDecimal objectiveItemScore;

    @ApiModelProperty(value = "试卷总分")
    private BigDecimal paperScore;

    @ApiModelProperty(value = "试卷版本号，每次对试卷有改动时更新此字段")
    private Integer paperVersion;

    @TableField("is_draft")
    @ApiModelProperty(value = "是否草稿，true是 false否")
    private Boolean draft;

    @ApiModelProperty(value = "试卷来源，0：题库；1：导入")
    private Integer paperSources;

    @ApiModelProperty(value = "授权码")
    @TableField("paper_auth_code")
    private String paperAuthCode;

    @ApiModelProperty(value = "授权码导入时间")
    @TableField("paper_auth_code_time")
    private String paperAuthCodeTime;

    @ApiModelProperty(value = "试卷类型，1：普通试卷，2：性格测试卷")
    private Integer paperType;
    
    @ApiModelProperty(value = "科目Id")
    @TableField("subject_id")
    private String subjectId;
    
    @ApiModelProperty(value = "科目名称")
    @TableField("subject_name")
    private String subjectName;

    @ApiModelProperty(value = "1：会计试卷，2：法考试卷")
    private Integer paperSupplier;
}
